home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Sharks' Spark Hack / SparksWindow.cpp < prev    next >
C/C++ Source or Header  |  1996-06-21  |  412b  |  22 lines

  1. #ifndef _APPLICATION_H
  2. #include <Application.h>
  3. #endif
  4.  
  5. #ifndef SPARKS_WINDOW_H
  6. #include "SparksWindow.h"
  7. #endif
  8.  
  9. SparksWindow::SparksWindow(BRect frame)
  10.                 : BWindow(frame, NULL, B_TITLED_WINDOW, 
  11.                 B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_NOT_MOVABLE |
  12.                 B_WILL_ACCEPT_FIRST_CLICK
  13.               , B_ALL_WORKSPACES )
  14. {
  15. }
  16.  
  17. bool SparksWindow::QuitRequested()
  18. {
  19.     be_app->PostMessage(B_QUIT_REQUESTED);
  20.     return(TRUE);
  21. }
  22.